<template>
  <div class="">
    <span>姓名:</span
    ><input type="text" v-model="uname" placeholder="请输入用户名" />
    <span>密码:</span
    ><input type="text" v-model="pwd" placeholder="请输入密码" />
  </div>
</template>
<script >
export default {
  data() {
    return {
      uname: "",
      pwd: "",
    };
  },
  props: [],
  components: {},
  created() {},
  mounted() {},
  methods: {
    getFromData() {
      return { uname: this.uname, pwd: this.pwd };
    },
    resetData() {
      this.uname = "";
      this.pwd = "";
    },
  },
};
</script>
<style lang='less' scoped>
</style>